package com.yb.bussiness.goods;

import com.yb.base.dao.BaseDao;
import com.yb.base.dao.IBaseDao;
import com.yb.domain.goods.TMarketBrand;

public class MarketBrandServiceImpl implements MarketBrandService {
	private IBaseDao<TMarketBrand, TMarketBrand> dao;

	public MarketBrandServiceImpl() {
		dao = new BaseDao<TMarketBrand, TMarketBrand>(TMarketBrand.class);
	}

	public void delete(TMarketBrand tmb) {
		String sql = "delete from t_market_brand where brandId = ? and marketId = ? ";
		dao.delete(sql, new Object[] { tmb.getBrandId(), tmb.getMarketId() });
	}

	public void save(TMarketBrand tmb) {
		dao.saveEntity(tmb);
	}

}
